// 最顶级路由---type
// @system GO-CRAWL <shop-yun.com>
// @version go-crawl 1.0
// @author xiaotangren  <unphp@qq.com>
// @data 2014-07-29
package socket

import (
	conf "shop-yun.go/go-crawl/utils/conf"
)

//socket接口
type RouterInterface interface {
	Route(module, table, action string, params interface{}) (s conf.SendData)
}

var RouteMap map[string]RouterInterface

func init() {
	RouteMap = make(map[string]RouterInterface)

}

func getModulesRoute(types string) (RouterInterface, error) {
	var r RouterInterface
	switch types {
	case "taobao":
	}
	return r, nil

}
